package com.xindaoapp.happypet.protocol;

import java.io.File;

import android.util.Pair;

import com.xindaoapp.happypet.protocol.CustomMultipartEntity.ProgressListener;



public interface UploadPost {

    /**
     * 上传图片文件
     * 
     * @param url
     * @param imageFile
     * @param progressListener
     */
    public abstract Pair<Boolean, String> post(String uid, String fid, File imageFile,
            ProgressListener iProgressListener);

    /**
     * 上传视频文件
     * 
     * @param url
     * @param videoFile
     * @param coverFile
     * @param progressListener
     */
    public abstract Pair<Boolean, String> post(String uid, String fid, File videoFile,
            File coverFile, ProgressListener iProgressListener);

    /**
     * 回复
     * 
     * @param url
     * @param uid
     * @param fid
     * @param title
     * @param content
     * @param tid
     * @param pid
     * @param iProgressListener
     * @return
     */
    public abstract Pair<Boolean, String> post(String uid, String fid, String title,
            String content, String aidList, String videoAidList, String tid, String pid,
            String webvideodata, ProgressListener iProgressListener);

    /**
     * 发正文贴 <br/>
     * （上传完成图片之后上传）
     * 
     * @param url
     * @param uid
     * @param fid
     * @param title
     * @param content
     * @param aidList
     * @param videoAidList
     * @param iRequest
     */
    public abstract Pair<Boolean, String> post(String uid, String fid, String title,
            String content, String aidList, String videoAidList, String webvideodata,
            int isSendShared, ProgressListener iProgressListener);

}
